import 'dart:html';

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class CustomAppbar{
  String title;
  bool isSHowBack = false;
  CustomAppbar({required this.title,required this.isSHowBack});
  PreferredSizeWidget build(BuildContext context){
    return AppBar(
      title: Text(title),
      centerTitle: true,
      automaticallyImplyLeading: isSHowBack,
    );
  }
}